# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=glade3
pkgver=3.8.6
pkgrel=0
pkgdesc="A RAD tool for rapid development of GTK+2 user interfaces"
url="https://glade.gnome.org/"
arch="all"
license="LGPL-2.1-or-later AND GPL-2.0-or-later"
makedepends="gtk+2.0-dev itstool libxml2-dev paxmark python2"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/glade3/${pkgver%.*}/glade3-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--enable-compile-warnings=no \
		--disable-scrollkeeper \
		--disable-gnome
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	paxmark -r "$pkgdir"/usr/bin/glade-3
}

sha512sums="14ea975a62a2e032e0f39c38d13e0717119ef15b44e0c30bc0d9f19850ebd1535cb05eb0d240c1c8aeb88f38c276fea3a2880cb8aa684b976726ced729e7f8cf  glade3-3.8.6.tar.xz"
